<template>
	<view class="store-page" style="background: #fff;">
		<nav-bar title="我的发布" :showLeftIcon="true" :leftSlot="false"></nav-bar>
		<scroll-view class="content-box" scroll-y>
			<view class="vehicleSearch" @click="clickSkip">
				<view>
					<image style="height: 36rpx;width: 36rpx;" src="@/static/images/mine/aboutUs.png"
						mode="widthFix"></image>
					<text>yaoyao~</text>
					<text>2024/09/发布</text>
				</view>
				<view>
					<text>南京 江宁</text>
					<image style="height: 8rpx;width: 35rpx;" src="@/static/images/mine/to.png" mode="widthFix">
					</image>
					<text> 徐州 铜山</text>
				</view>
				<text>轿车 / 1台 / 能正常行驶</text>
				<text>托运日期:2024-09-07
					<text>（明天）</text>
				</text>
				<view>
					<view>
						<text><text>0</text>元起</text>
						<text>当前 0次出价 0人联系</text>
					</view>
					<text @click.stop="">下架</text>
				</view>
			</view>
			<view class="searchCar">
				<view>
					<view>
						<text>南京 江宁</text>
						<image style="height: 8rpx;width: 35rpx;" src="@/static/images/mine/to.png" mode="widthFix">
						</image>
						<text> 徐州 铜山</text>
					</view>
					<text>800-1600
						<text>元</text>
					</text>
				</view>
				<text>途径点:无</text>
				<view>
					<text>预计起止时间</text>
					<text>2024/09/04-2024/09/04</text>
				</view>
				<view>
					<view>
						<view>
							<image style="height: 36rpx;width: 36rpx;" src="@/static/images/mine/aboutUs.png"
								mode="widthFix"></image>
							<text>承运商名称</text>
							<text class="authentication">
								<image style="height: 20rpx;width: 20rpx;margin-right: 8rpx;"
									src="@/static/images/mine/authentication.png" mode="widthFix"></image>
								企业认证
							</text>
							<text class="details">5位板</text>
						</view>
						<text>2024/09/04发布</text>
					</view>
					<text>下架</text>
				</view>
			</view>
			<view class="sellCar">
				<image style="height: 180rpx;width: 240rpx;" src="@/static/images/mine/car.png" mode="widthFix">
				</image>
				<view>
					<text>青岛解放 解放JK6(大柴)220马力(CA4DK1-22E61)柴油青岛解放 解放JK6(大柴)220马力(CA4DK1-22E61)柴油</text>
					<text>二手车 / 武汉牌照</text>
					<view>
						<text>23.98万</text>
						<text>下架该信息</text>
					</view>
				</view>
			</view>
		</scroll-view>

		<!-- <you-tabs :activeName="tabActive" :tabsList="tabsList" @tabClick="clickTabItem" :showMoreTab="true"></you-tabs> -->
		<!-- 	<you-scroll 
			:loadingHeight="loadingHeight" 
			:mainHeight="scrollHeight" 
			:isAllData="isAllData"
			:isRequestSuccess="isRequestSuccess" 
			@onRefresh="onRefresh" 
			@loadMore="loadMore">
			<template>
				
			</template>
		</you-scroll> -->
		<!-- <you-bottom-btn :btnConfig="bottomBtnConfig" @clickSubmit="clickSubmit"></you-bottom-btn> -->
	</view>
</template>

<script>
	import {
		baseIconUrl,
		baseImgUrl
	} from '@/config'
	export default {
		name: 'Store',
		components: {},
		data() {
			return {
				loadingHeight: '',
				scrollHeight: '',
			}
		},

		async onLoad() {
			this.scrollHeight = this.$store.getters.heightData.mainHeight - 48 + 'px'
			this.loadingHeight = this.$store.getters.heightData.mainHeight - 68 + 'px'

		},
		async onShow() {

		},
		methods: {
			clickSkip(){
				uni.navigateTo({
					url: '/subPages/details/searchCar'
				})
			}
		}
	}
</script>
<style lang="scss" scoped>
	.content-box {
		max-height: calc(100vh - 88rpx);
		height: calc(100vh - 88rpx);
		padding: 30rpx;
		padding-top: 0;
		background: #ffffff;

		.vehicleSearch {
			padding: 30rpx 0;
			border-bottom: 2rpx solid #ddd;

			>view {
				&:nth-of-type(1) {
					display: flex;
					justify-content: space-between;
					font-size: 24rpx;

					>text {
						display: block;
						width: calc(50% - 18rpx);

						&:nth-of-type(1) {
							padding-left: 12rpx;
							opacity: 0.9;
						}

						&:nth-of-type(2) {
							text-align: right;
							opacity: 0.4;
						}
					}
				}

				&:nth-of-type(2) {
					font-family: "PingFang SC";
					font-size: 30rpx;
					font-style: normal;
					font-weight: 500;
					line-height: normal;
					display: flex;
					align-items: center;

					image {
						margin: 0 12rpx;
					}
				}

				&:nth-of-type(3) {
					display: flex;
					justify-content: space-between;
					align-items: flex-end;

					view {
						>text {
							display: block;

							&:nth-of-type(1) {
								font-family: "PingFang SC";
								font-size: 24rpx;
								font-style: normal;
								font-weight: 600;
								line-height: 44rpx;
								background: linear-gradient(180deg, #105ECB 0%, #1777FF 100%);
								background-clip: text;
								-webkit-background-clip: text;
								color: #1777FF;

								text {
									font-size: 44rpx;
								}
							}

							&:nth-of-type(2) {
								opacity: 0.7;
							}
						}
					}

					>text {
						width: 172rpx;
						height: 64rpx;
						border-radius: 8rpx;
						background: #1777FF;
						text-align: center;
						line-height: 64rpx;
						color: #ffffff;
						font-family: "PingFang SC";
						font-size: 28rpx;
					}
				}
			}

			>text {
				display: block;

				&:nth-of-type(1) {
					color: #ff7512;
					font-family: "PingFang SC";
					font-size: 26rpx;
					margin: 16rpx 0;
				}

				&:nth-of-type(2) {
					color: #737373;
					margin-bottom: 10rpx;
					font-family: "PingFang SC";
					font-size: 24rpx;
					font-style: normal;
					font-weight: 400;
					line-height: normal;

					text {
						color: #1777ff;
					}
				}
			}
		}

		.searchCar {
			padding: 30rpx 0;
			border-bottom: 2rpx solid #ddd;

			>view {
				&:nth-of-type(1) {
					display: flex;
					justify-content: space-between;

					view {
						font-family: "PingFang SC";
						font-size: 30rpx;
						font-style: normal;
						font-weight: 500;
						line-height: normal;
						display: flex;
						align-items: center;

						image {
							margin: 0 12rpx;
						}
					}

					>text {
						text-align: right;
						font-family: "PingFang SC";
						font-size: 44rpx;
						font-style: normal;
						font-weight: 600;
						line-height: 42rpx;
						color: #1777ff;

						text {
							font-size: 24rpx;
						}
					}
				}

				&:nth-of-type(2) {
					display: flex;
					justify-content: space-between;

					text {
						font-size: 26rpx;

						&:nth-of-type(1) {
							opacity: 0.4;

						}

						&:nth-of-type(2) {
							opacity: 0.9;
						}
					}
				}

				&:nth-of-type(3) {
					display: flex;
					justify-content: space-between;
					align-items: flex-end;
					margin-top: 10rpx;

					>view {
						>view {
							display: flex;
							align-items: center;

							text {
								margin-left: 12rpx;
							}

							.authentication {
								display: inline-flex;
								height: 32rpx;
								padding: 6rpx 10rpx;
								justify-content: center;
								align-items: center;
								flex-shrink: 0;
								border-radius: 4rpx;
								background: #1777ff33;
								color: #1777FF;
								font-size: 20rpx;
							}

							.details {
								display: inline-flex;
								height: 32rpx;
								padding: 6rpx 10rpx;
								justify-content: center;
								align-items: center;
								flex-shrink: 0;
								border-radius: 4rpx;
								background: #ff751233;
								color: #ff7512;
								font-size: 20rpx;
							}
						}

						>text {
							font-size: 24rpx;
							opacity: 0.4;
						}
					}

					>text {
						display: block;
						width: 172rpx;
						height: 64rpx;
						border-radius: 8rpx;
						background: #1777FF;
						text-align: center;
						line-height: 64rpx;
						color: #ffffff;
						font-family: "PingFang SC";
						font-size: 28rpx;
					}
				}
			}

			>text {
				display: block;
				color: #ff7512;
				font-family: "PingFang SC";
				font-size: 26rpx;
				margin: 16rpx 0;
			}

		}

		.sellCar {
			padding: 30rpx 0;
			display: flex;

			>view {
				width: calc(100% - 260rpx);
				margin-left: 20rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-between;

				>text {
					&:nth-of-type(1) {
						display: -webkit-box;
						-webkit-box-orient: vertical;
						-webkit-line-clamp: 2;
						overflow: hidden;
						width: 100%;
						font-family: "PingFang SC";
						font-size: 30rpx;
					}

					&:nth-of-type(2) {
						font-family: "PingFang SC";
						font-size: 24rpx;
					}
				}

				>view {
					display: flex;
					justify-content: space-between;

					text {
						color: #1777FF;
						font-family: "PingFang SC";
						font-size: 32rpx;

						&:nth-of-type(1) {}

						&:nth-of-type(2) {}
					}
				}
			}
		}
	}
</style>